{{- if include "trivy.provider.enabled" $ }}
---
apiVersion: externaldata.gatekeeper.sh/v1beta1
kind: Provider
metadata:
  name: trivy-provider
  {{- include "helm_lib_module_labels" (list . (dict "app" "trivy-provider" "app.kubernetes.io/part-of" "gatekeeper")) | nindent 2 }}
spec:
  url: https://trivy-provider.d8-{{ .Chart.Name }}:8443/validate
  timeout: 27
  caBundle: {{ .Values.admissionPolicyEngine.internal.denyVulnerableImages.webhook.ca | b64enc | quote }}
{{- end }}
